package com.youi.shop.pojo.qo.cart;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.Min;

/**
 * @version 1.0
 * @Author: xxf
 * @CreateDate: 2020/11/11 9:28
 */
@Data
@ApiModel("购物车插入")
public class CartInsertQO {

    @ApiModelProperty(value = "会员表主键")
    private Long memberId;

    @ApiModelProperty(value = "商品表主键")
    private Long productId;

    @Min(1)
    @ApiModelProperty(value = "购买数量")
    @DecimalMin("0")
    private Integer quantity;


}
